import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @Description TODO
 * @Author hhy
 * @Date 2020/10/13 9:31
 */
public class Test01 {
    //日志级别从低到高分为TRACE < DEBUG < INFO < WARN < ERROR < FATAL
    public static void main(String[] args) {
        Logger logger = LogManager.getLogger(LogManager.ROOT_LOGGER_NAME);

        for (int i = 0; i < 100; i++) {
            logger.debug("debug"+i);
            logger.error("error"+i);
            logger.fatal("fatal"+i);
            logger.info("info"+i);
            logger.trace("trace"+i);
            logger.warn("warn"+i);
        }



    }


}
